<template>
  <div class="child">
    <h3>Child</h3>
    <p>接收父组件的count值是{{ count }}</p>
    <button @click="$emit('update:count', count + 1)">对count进行累加</button>
  </div>
</template>

<script>
export default {
  name: "Props",
  props: ["count"],
};
</script>

<style scoped>
.child {
  background: pink;
}
</style>
